De AMDify and use browserify