Seems that not all browsers agree on the error type to be throw with JSON.parse