Fixed return type of wait for js and wait for jquery condition keywords