Let's try to debug the js code and find out the piece of code that causes the error.
On the browser please go to menu Tools-> F12 developer tools and then go to the tab Script. First thing you need to do is to clear the cache using the first button in the toolbar. After you do that please go and hit the button Start Debugging. That would reload the page you'll see the error. Please take a screenshot and post it here.