Adding js snippet to the readme so users can test it out in console.