Fix for Internet Explorer 8

IE8 does not support addEventListener, so
use jQuery on() method.