the function triggered when i hit the enter key, Javascript/Jquery