Replaced keydown and click for IE < 9 compatibility