Minor updates and fixes

Refactor the javascript file to look more consistently like core phpbb javascript.