[This is preliminary documentation and subject to change]
You did not include the right brace that marks the end of the function body, loop, block of code, or object initializer. An example of this error would be a for loop with only the left brace marking the body of the loop.
To correct this error
Function Object | Controlling Program Flow | JScript Language Reference