Adding some better logging to help catch out stupid problems and adding jshint and jscsrd