Fixed call to a deprecated function, used correct event category for creating a click event (FireFox requires).