Updated angular code to use commonjs module format and browserify