function recipeSearch(input) {
  $.ajax({
    url: "/recipes",
    data: input,
  }).done(function(recipeItemPartial) {
    $(recipeItemPartial).appendTo(".main-searchbar");
  });
}

var throttledSearch = _.throttle(recipeSearch, 300);

$( document ).ready(function() {
    $(".form-control").keyup(function(event){
        $(".drop-down").remove();
        event.preventDefault();
        var input = $(this).serialize();
        if ($(this).val().length > 1) {
          throttledSearch(input);
        }
    });

    $("mark").on("mouseover", function(){
      $("div").removeClass("hovered-term");
      text = $(this).text();
      termCard = $(".terms-box").find("#"+text);
      termCard.addClass("hovered-term");
    });

});
function recipeSearch(input) {
  $(".drop-down").remove();
  $.ajax({
    url: "/recipes",
    data: input,
  }).done(function(recipeItemPartial) {
    $(recipeItemPartial).appendTo(".main-searchbar");
  });
}

var throttledSearch = _.throttle(recipeSearch, 300);

$( document ).ready(function() {
    // console.log( "ready!" );
    $(".form-control").keyup(function(event){
      if (event.keyCode != 13) {
        // console.log(event.keyCode);
        event.preventDefault();
        var input = $(this).serialize();
        throttledSearch(input);
      }
    });

    $("mark").on("mouseover", function(){
      $("div").removeClass("hovered-term");
      text = $(this).text();
      termCard = $(".terms-box").find("#"+text);
      termCard.addClass("hovered-term");
    });

});
--- 
+++ 
@@ -1,4 +1,5 @@
 function recipeSearch(input) {
+  $(".drop-down").remove();
   $.ajax({
     url: "/recipes",
     data: input,
@@ -10,13 +11,14 @@
 var throttledSearch = _.throttle(recipeSearch, 300);
 
 $( document ).ready(function() {
+    // console.log( "ready!" );
     $(".form-control").keyup(function(event){
-        $(".drop-down").remove();
+      if (event.keyCode != 13) {
+        // console.log(event.keyCode);
         event.preventDefault();
         var input = $(this).serialize();
-        if ($(this).val().length > 1) {
-          throttledSearch(input);
-        }
+        throttledSearch(input);
+      }
     });
 
     $("mark").on("mouseover", function(){
Fix search bar, not render if fewer 1 or 0 characters
