Sanitize AngularJS module suitable for bundling with Browserify or Webpack