adds --devMode option for browserify builds + fix for buildDir not setting correctly

can you please use idiomatic way of writing this: `buildDir = argv.outputDir or 'build'`