a little bit closer to the angular browserify example