Browserify as standalone, fix jslint errors