Unstable - Made changes compatible with older versions of jQuery