diff --git a/themes/blueprint/js/lightbox.js b/themes/blueprint/js/lightbox.js
index 2a9804f1f3c8485519e3c3537c60c72f5a41b392..4ba745d8c9debbdca4123e88c6b7aa01c4a98b18 100644
--- a/themes/blueprint/js/lightbox.js
+++ b/themes/blueprint/js/lightbox.js
@@ -1,4 +1,4 @@
-/*global btoa, checkSaveStatuses, confirm, extractController, extractSource, getItemsFromCartCookie, hexEncode, htmlEncode, path, printIDs, rc4Encrypt, Recaptcha, redrawCartStatus, refreshCommentList, removeRecordState, saveCartCookie, unescape, vufindString*/
+/*global btoa, checkSaveStatuses, confirm, extractController, extractSource, getItemsFromCartCookie, hexEncode, htmlEncode, path, printIDs, rc4Encrypt, Recaptcha, redrawCartStatus, refreshCommentList, removeRecordState, saveCartCookie, unescape, userIsLoggedIn, vufindString*/
 
 // keep a handle to the current opened dialog so we can access it later
 var __dialogHandle = {dialog: null, processFollowup:false, followupModule: null, followupAction: null, recordId: null, postParams: null};
diff --git a/themes/blueprint/js/record.js b/themes/blueprint/js/record.js
index 0adeff25fa3f127bb411eab583060fc2cf79f9d4..c63a97a8b30041863c4cb8ef195c181ccf41ca29 100644
--- a/themes/blueprint/js/record.js
+++ b/themes/blueprint/js/record.js
@@ -1,4 +1,4 @@
-/*global __dialogHandle, displayFormError, extractController, extractSource, getLightbox, path, toggleMenu*/
+/*global console, __dialogHandle, displayFormError, extractController, extractSource, getLightbox, path, refreshTagList, toggleMenu*/
 
 /**
  * Functions and event handlers specific to record pages.
diff --git a/themes/bootstrap3/js/record.js b/themes/bootstrap3/js/record.js
index 942eadd7e0f5f6bb0a666529d8c6b0891660ed79..4f25e70794b75d81dd9bb36c58793a39a17f87c7 100644
--- a/themes/bootstrap3/js/record.js
+++ b/themes/bootstrap3/js/record.js
@@ -1,4 +1,4 @@
-/*global checkSaveStatuses, deparam, extractClassParams, htmlEncode, Lightbox, path, syn_get_widget, vufindString */
+/*global checkSaveStatuses, deparam, extractClassParams, htmlEncode, Lightbox, path, syn_get_widget, userIsLoggedIn, vufindString */
 
 /**
  * Functions and event handlers specific to record pages.
@@ -173,24 +173,6 @@ function ajaxLoadTab(tabid) {
   return false;
 }
 
-function ajaxTagUpdate(tag, remove) {
-  if(typeof remove === "undefined") {
-    remove = false;
-  }
-  var recordId = $('#record_id').val();
-  var recordSource = $('.hiddenSource').val();
-  $.ajax({
-    url:path+'/AJAX/JSON?method=tagRecord',
-    method:'POST',
-    data:{
-      tag:'"'+tag.replace(/\+/g, ' ')+'"',
-      id:recordId,
-      source:recordSource,
-      remove:remove
-    },
-    complete:refreshTagList
-  });
-}
 function refreshTagList(loggedin) {
   loggedin = !!loggedin || userIsLoggedIn;
   var recordId = $('#record_id').val();
@@ -216,6 +198,25 @@ function refreshTagList(loggedin) {
   }
 }
 
+function ajaxTagUpdate(tag, remove) {
+  if(typeof remove === "undefined") {
+    remove = false;
+  }
+  var recordId = $('#record_id').val();
+  var recordSource = $('.hiddenSource').val();
+  $.ajax({
+    url:path+'/AJAX/JSON?method=tagRecord',
+    method:'POST',
+    data:{
+      tag:'"'+tag.replace(/\+/g, ' ')+'"',
+      id:recordId,
+      source:recordSource,
+      remove:remove
+    },
+    complete:refreshTagList
+  });
+}
+
 $(document).ready(function(){
   var id = $('.hiddenId')[0].value;
   registerTabEvents();