minor js

adding the submit on enter function