Changing .bind to .on

As of jQuery 1.7, the .on() and .off() methods are preferred for attaching and removing event handlers.