text: $(function(){$("#getWord").on("click",function(e){e.preventDefault(),$(".form-control").focus().removeClass("has-error");var o=$("#word").val();o?$.ajax({url:"https://wordsapiv1.p.mashape.com/words/"+o,type:"GET",data:{},datatype:"json",success:function(e){$(".word-result").empty();var o=$("#definition-template").html(),r=Handlebars.compile(o);$(".word-result").append(r(e))},error:function(e){},beforeSend:function(e){e.setRequestHeader("X-Mashape-Authorization","hhUvOn80C0mshEr1StkZqqGUloimp1P7Ndwjsn4g645NtwbRDP")}}):$(".form-control").addClass("has-error")})});