some of testing code for jquery