diff --git a/js/drupalbackbone.js b/js/drupalbackbone.js
index 103d62d..ffcbe3e 100644
--- a/js/drupalbackbone.js
+++ b/js/drupalbackbone.js
@@ -78,7 +78,7 @@
         // indpendent of their objects.
         url: function() {
           // Modified from Backbone.js to ignore collection and add ".format" extension.
-          var base = this.restEndpoint + this.urlRoot || urlError();
+          var base = this.restEndpoint + this.urlRoot;
           if (this.isNew()) { return base; }
           // Add .json for format here.
           return base + (base.charAt(base.length - 1) === '/' ? '' : '/') + encodeURIComponent(this.id) + ".json";
@@ -253,7 +253,7 @@
                 return template.execute(vars);
               }
             }
-          }
+          };
 
           if (typeof(opts) !== 'object') {
             opts = {};
