diff --git a/javascript/entwineline.js b/javascript/entwineline.js
index <HASH>..<HASH> 100644
--- a/javascript/entwineline.js
+++ b/javascript/entwineline.js
@@ -511,7 +511,7 @@ window.Microblog = window.Microblog || {}
 
 						$('input[name=action_savepost]').removeAttr('disabled');
 						$('form.replyForm').find('input[name=action_savepost]').attr('value', 'Reply');
-					}).fail(function () {
+					}).error(function () {
 						$('input[name=action_savepost]').removeAttr('disabled');
 						$('form.replyForm').find('input[name=action_savepost]').attr('value', 'Reply');
 					})
diff --git a/javascript/timeline-commenter.js b/javascript/timeline-commenter.js
index <HASH>..<HASH> 100644
--- a/javascript/timeline-commenter.js
+++ b/javascript/timeline-commenter.js
@@ -85,7 +85,7 @@
                     return false;
 				}
                 
-                if (SS && SS.Dialog) {
+                if (window.SS && window.SS.Dialog) {
                     SS.Dialog.open(url);
                     return false;
                 }
fix(timeline.js) fixed 'fail' method reference, window.SS reference