make it work with console.log
Merge pull request #1 from maxogden/client-side

make it work with console.log