fixing wait and waitForJS docblock