updated version to republish to jQuery