diff --git a/UI/AddSeries/Existing/UnmappedFolderCompositeViewTemplate.html b/UI/AddSeries/Existing/UnmappedFolderCompositeViewTemplate.html
index bd4871a499..ba6d0432d7 100644
--- a/UI/AddSeries/Existing/UnmappedFolderCompositeViewTemplate.html
+++ b/UI/AddSeries/Existing/UnmappedFolderCompositeViewTemplate.html
@@ -20,5 +20,4 @@
-
diff --git a/UI/AddSeries/RootFolders/RootFolderSelectionPartial.html b/UI/AddSeries/RootFolders/RootFolderSelectionPartial.html
index c0489dd8ce..3655b24bb0 100644
--- a/UI/AddSeries/RootFolders/RootFolderSelectionPartial.html
+++ b/UI/AddSeries/RootFolders/RootFolderSelectionPartial.html
@@ -4,5 +4,3 @@
{{/each}}
-
-{{debug}}
diff --git a/UI/AddSeries/SearchResultTemplate.html b/UI/AddSeries/SearchResultTemplate.html
index da6a2ec733..752ab0301b 100644
--- a/UI/AddSeries/SearchResultTemplate.html
+++ b/UI/AddSeries/SearchResultTemplate.html
@@ -2,8 +2,7 @@
-{{debug}}
diff --git a/UI/Cells/SeriesTitleTemplate.html b/UI/Cells/SeriesTitleTemplate.html
index 4b65dc63a6..b4786d5b16 100644
--- a/UI/Cells/SeriesTitleTemplate.html
+++ b/UI/Cells/SeriesTitleTemplate.html
@@ -1,2 +1 @@
{{title}}
-{{debug}}
diff --git a/UI/Series/EpisodeCollection.js b/UI/Series/EpisodeCollection.js
index 123eccf47b..e04dead48c 100644
--- a/UI/Series/EpisodeCollection.js
+++ b/UI/Series/EpisodeCollection.js
@@ -1,4 +1,4 @@
-'use strict';
+'use strict';
define(
[
'backbone',
diff --git a/UI/jQuery/ToTheTop.js b/UI/jQuery/ToTheTop.js
index 98de3968c9..401987ef20 100644
--- a/UI/jQuery/ToTheTop.js
+++ b/UI/jQuery/ToTheTop.js
@@ -5,19 +5,21 @@ define(
], function () {
$(document).ready(function () {
+ var _window = $(window);
+ var _scrollButton = $('#scroll-up');
+
$(window).scroll(function () {
- if ($(this).scrollTop() > 100) {
- $('#scroll-up').fadeIn();
+ if (_window.scrollTop() > 100) {
+ _scrollButton.fadeIn();
}
else {
- $('#scroll-up').fadeOut();
+ _scrollButton.fadeOut();
}
});
- $('#scroll-up').click(function () {
+ _scrollButton.click(function () {
$("html, body").animate({ scrollTop: 0 }, 600);
return false;
});
-
});
});