diff --git a/shoutbox-form.js b/shoutbox-form.js
index e30e920..41350b5 100644
--- a/shoutbox-form.js
+++ b/shoutbox-form.js
@@ -136,13 +136,11 @@ Drupal.shoutbox.loadShouts = function(restoreForm) {
       $('#shoutbox-error').hide();
       
       // Invoke a hook for other modules to act on the added shout.
-      if (Drupal.shoutbox.afterPost) {
-      	$.each(Drupal.shoutbox.afterPost, function (func) {
-	        if ($.isFunction(this.execute)) {
-	          this.execute();
-	        }
-	      });
-      }
+      $.each(Drupal.shoutbox.afterPost, function (func) {
+        if ($.isFunction(this.execute)) {
+          this.execute();
+        }
+      });
       
       // Restore the button
       if (restoreForm) {
diff --git a/shoutbox.module b/shoutbox.module
index ad97547..367fa0f 100644
--- a/shoutbox.module
+++ b/shoutbox.module
@@ -447,7 +447,7 @@ function shoutbox_add_form($form) {
   // Placeholder for ajax throbber image
   $form['wrapper']['throbber'] = array(
     '#type' => 'item',
-    '#markup' => '<div id="shoutbox-throbber"></div>',
+    '#value' => '<div id="shoutbox-throbber"></div>',
   );
 
   // The submit button
