What you need to look at is the act.waitByFlag.js file and see if the definition in that file is capital F as in F!@&. Use your editor to search all files (case sensitive) for waitByflag. Did you find the error?