build a commonJS project for the browser (like browserify but not broken)