Cleanup client/main.js file and add necessary docs.
Fix issues with nanoScroller scrollbars in Firefox.