adding support jquery legacy code