Add semicolons to js files

Since Roole now requires semicolons, js code should follow it
Also use jshint
Use new before constructors