Switched the .on() to .bind() to support both newer and older versions of jQuery