05.5.1 Debugging
Debugging javascript can be quite tricky. The simplest way to debug the javascript is to use Goolge Chromium and insert 'debugger;' statements into your javascript.
If you open the chrome web developer tools the debugger statement will cause the javascript to break at that location.