define(['backbone'], function(Backbone) {

    var baseUrl = "/rest";

    var urlError = function() {
        throw new Error('A "url" property or function must be specified');
    };

    return function(method, model, options) {
        options = options || {};

        var url = options.url || _.result(model, 'url') || urlError();
        options.url = baseUrl + url;

        Backbone.sync.apply(this, arguments);
    }

});

@@ -11,16 +11,30 @@
 ackbone'
+, 'underscore'
 %5D, funct
@@ -45,16 +45,19 @@
 Backbone
+, _
 ) %7B%0A%0A   
@@ -436,14 +436,15 @@
 );%0A    %7D
+;
 %0A%0A%7D);%0A

Fix jshint errors