Fix DOM Exception 12 in Chrome.

Chrome's error name is "SyntaxError" rather than "SYNTAX_ERR".