added support for jquery