diff --git a/backbone.module b/backbone.module
index e73ec57..ed6772d 100644
--- a/backbone.module
+++ b/backbone.module
@@ -26,10 +26,11 @@ function backbone_help($path, $arg) {
  * TODO Make this conditional by page/configurable.
  */
 function backbone_init() {
+  global $base_path;
   drupal_add_library('backbone', 'drupalbackbone-services');
   $backbone_settings = array(
     'backbone' => array(
-      'endpoint' => _backbone_variable_get('endpoint'),
+      'endpoint' => $base_path . _backbone_variable_get('endpoint'),
     ),
   );
   drupal_add_js($backbone_settings, 'setting');
diff --git a/js/drupalbackbone.js b/js/drupalbackbone.js
index 25a52a0..dc19f8f 100644
--- a/js/drupalbackbone.js
+++ b/js/drupalbackbone.js
@@ -232,7 +232,7 @@
 		return _.template(source);
 	      },
 	      execute: function(template, vars) {
-		return template.execute(vars);
+		return template(vars);
 	      } 
 	    },
 	    twig: {
diff --git a/modules/backbone_example/backbone_example.module b/modules/backbone_example/backbone_example.module
index f73910b..af56853 100644
--- a/modules/backbone_example/backbone_example.module
+++ b/modules/backbone_example/backbone_example.module
@@ -98,5 +98,5 @@ function backbone_example_admin_page() {
  *   Return a standard _.template() style template.
  */
 function theme_backbone_example_node_template() {
-  return '<% if (node.title && node.body) { %><h2><%= node.title %></h2><div><%= node.body.und[0].safe_value %></div><% } %>';
+  return '<% if (typeof(title) != "undefined" && typeof(body) != "undefined" ) { %><h2><%= title %></h2><div><%= body.und[0].safe_value %></div><% } %>';
 }
