Added tracking and switch to jQuery.