Added some escaping and removed a console.log