fixing waitForJS docblock