Making the library compatible with old jQuery versions < 1.7