diff --git a/publisher/static/publisher/publisher.js b/publisher/static/publisher/publisher.js
index <HASH>..<HASH> 100644
--- a/publisher/static/publisher/publisher.js
+++ b/publisher/static/publisher/publisher.js
@@ -1,16 +1,15 @@
 var $ = django.jQuery;
 $(function() {
-    $('input:checkbox.publish-checkbox').change(function() {
-        if ($(this).is(':checked')) {
-            var url = $(this).data('publish');
-        }
-        else {
-            var url = $(this).data('unpublish');
-        }
-        $.get(url, function(data) {
-			if (data.success) {
-				$('.published-icon').find('img').toggle();
-			}
-		});
-    })
-})
+  $('input:checkbox.publish-checkbox').change(function() {
+    if ($(this).is(':checked')) {
+      var url = $(this).attr('data-publish');
+    } else {
+      var url = $(this).attr('data-unpublish');
+    }
+    $.get(url, function(data) {
+      if (data.success) {
+        $('.published-icon').find('img').toggle();
+      }
+    });
+  });
+});
Swapped from data attributes to standard attr call to fix undefined bug