Change binding method for supporting jquery 1.6.4