removed form from index.html and replaced with an event handler for enter key