I received a JavaScript file and demo page .html, .js file contains many functions. When I run demo page I don't know what functions are running.
Is there any way to get name of the executed functions?
You could load your page in Chrome and use JavaScript Profiling
https://developers.google.com/chrome-developer-tools/docs/cpu-profiling

debuggerstatement.