Change definition for jquery "On" function to have handler be a Function instead of a specific signature.

This is to support having the handler be a reference to a debounced method