add semicolons and other changes as recommended by jshint (can be disabled in test/.jshintrc)