made it JQuery 2.0 compatible