Jamjs wrapper for AngularJS ngResource module