diff --git a/block_submit.info b/block_submit.info
index c277fd2..02e632c 100644
--- a/block_submit.info
+++ b/block_submit.info
@@ -3,8 +3,5 @@ description = This module blocks users from accidentally submitting a form twice
 core = 7.x
 tags[] = content
 
-files[] = block_submit.module
-files[] = block_submit.js
-
-version = "7.x-1.0"
 core = "7.x"
+configure = admin/config/user-interface/block_submit
diff --git a/block_submit.js b/block_submit.js
index f4f6da8..1ab9a64 100644
--- a/block_submit.js
+++ b/block_submit.js
@@ -1,5 +1,7 @@
 (function ($) {
-  $(document).ready(function() {
+
+Drupal.behaviors.blockSubmitBlockit = {
+  attach: function(context) {
     $('form').each(function (i) {
       var form = $(this);
       $('input.form-submit', form).click(function (e) {
@@ -39,5 +41,8 @@
       }
       return true;
     });
-  }); 
+  }
+};
+
 })(jQuery);
\ No newline at end of file
+
diff --git a/block_submit.module b/block_submit.module
index 2db3952..2096260 100644
--- a/block_submit.module
+++ b/block_submit.module
@@ -8,7 +8,7 @@
 */
 
 /**
-* Implementation of hook_init().
+ * Implements hook_init().
 */
 function block_submit_init() {
   $block_submit_settings = array( 'block_submit' => array(
@@ -18,7 +18,7 @@ function block_submit_init() {
     'block_submit_atext' => t(variable_get('block_submit_atext', '')),
     'block_submit_hide_css' => variable_get('block_submit_hide_css', 'block-submit-processing'),
     'block_submit_hide_text' => t(variable_get('block_submit_hide_text', 'Processing...')),
-    'block_submit_hide_fx' => t(variable_get('block_submit_hide_fx', false)),
+    'block_submit_hide_fx' => t(variable_get('block_submit_hide_fx', FALSE)),
   ));
 
   drupal_add_js($block_submit_settings, 'setting');
@@ -27,14 +27,14 @@ function block_submit_init() {
 }
 
 /**
-* Implementation of hook_menu().
+ * Implements hook_menu().
 */
 function block_submit_menu() {
   $items = array();
 
   $items['admin/config/user-interface/block_submit'] = array(
-    'title' => t('Block submit settings'),
-    'description' => t('Change the blocking settings.'),
+    'title' => 'Block submit settings',
+    'description' => 'Change the form submit blocking settings.',
     'page callback' => 'drupal_get_form',
     'page arguments' => array('block_submit_settings'),
     'access arguments' => array('administer site configuration'),
@@ -48,7 +48,7 @@ function block_submit_menu() {
 * Form builder. Configure block submit settings.
 *
 * @ingroup forms
-* @see system_settings_form().
+ * @see system_settings_form()
 */
 function block_submit_settings() {
   $form = array();
@@ -64,8 +64,8 @@ function block_submit_settings() {
   $form['block_submit_disable'] = array(
     '#type' => 'fieldset',
     '#title' => t('Disabling settings'),
-    '#collapsible' => true,
-    '#collapsed' => false,
+    '#collapsible' => TRUE,
+    '#collapsed' => FALSE,
   );
 
   $form['block_submit_disable']['block_submit_css'] = array(
@@ -92,14 +92,14 @@ function block_submit_settings() {
   $form['block_submit_hide'] = array(
     '#type' => 'fieldset',
     '#title' => t('Hiding settings'),
-    '#collapsible' => true,
-    '#collapsed' => false,
+    '#collapsible' => TRUE,
+    '#collapsed' => FALSE,
   );
 
   $form['block_submit_hide']['block_submit_hide_fx'] = array(
      '#type' => 'checkbox',
      '#title' => t('Use effects?'),
-     '#default_value' => variable_get('block_submit_hide_fx', false),
+    '#default_value' => variable_get('block_submit_hide_fx', FALSE),
      '#description' => t('Enabling this will use a fade in / out effect.'),
    );
 
