Adds JS to close alert boxes on keypress (Fixes #5)