updated version for jquery plugin registry