Replace jQuery's deprecated .bind() and .live() with .on().