Migrated to JQuery to fix issues with IE
(minor) fixed indentation
Fix regression bug with alt key