The ECMAScript standard documentation indicates that error code 'SyntaxError: Unexpected token' is caused by the following problem: "A specific language construct was expected, but something else was provided. This might be a simple typo.".
Do you think there is another cause for this error? Let others know in the comments.