made the plugin jQuery compatible