SyntaxError should be for js, Error would be fine here