Added methods $.waitUntil() and $.waitWhile()