update readme

add the console.log snippet to the readme