Fix javascript escaping in error message