integration of jquery into plugin