fix for issue#7

* pressing enter now calls ajax request as well.