Replace repeated code for browserify with array of scripts