jQuery constructor testing