Added some javascript to deal with the enter keydown event