Loosen dependency, make it compatible with JQuery 1.x