completely switch to browserify, fix templates