remove cdn jquery and refactor waittest