document.write script.js

I have chabged console.log with document.write
Merge pull request #13 from bobbiy/patch-1