fixed alert
made minor changes to javascript format
made minor fixes to HTML