diff --git a/term_reference_tree.js b/term_reference_tree.js
index 1d28f58..78bf1e2 100644
--- a/term_reference_tree.js
+++ b/term_reference_tree.js
@@ -212,7 +212,7 @@
       //No items showing, so show the message.
       if ( ! message_showing ) {
         track_list_container.append(
-            '<li class="term_ref_tree_nothing_message">' + termReferenceTreeNothingSelectedText + '</li>'
+            '<li class="term_ref_tree_nothing_message">' + Drupal.t('[Nothing selected]') + '</li>'
         );
       }
     }
diff --git a/term_reference_tree.widget.inc b/term_reference_tree.widget.inc
index ae96baa..41ae8ae 100644
--- a/term_reference_tree.widget.inc
+++ b/term_reference_tree.widget.inc
@@ -334,7 +334,6 @@ function theme_checkbox_tree_label($variables) {
  */
 function theme_checkbox_tree_track_list($variables) {
   //Should the label be singular or plural? Depends on cardinality of term field.
-  $nothingselected = t('[Nothing selected]');
   $label = format_plural(
       $variables['element']['#max_choices'],
       'Selected item (click the item to uncheck it)',
@@ -345,12 +344,6 @@ function theme_checkbox_tree_track_list($variables) {
        <div class="term-reference-track-list-label">' . $label . '</div>
      </div>';
 
-  //Add the "Nothing selected" text. To style it, replace it with whatever you want.
-  //Could do this with a file instead.
-  drupal_add_js(
-      'var termReferenceTreeNothingSelectedText = "' . $nothingselected . '";',
-      'inline'
-  );
   return $output;
 }
 
