Try using `console.log()` instead of document write.

Check out this video on the chrome developer tools. I think youll find it super useful!

https://www.youtube.com/watch?v=nOEw9iiopwI