angular-resource, require-able and browserify-able