Update README.md

reformatted js snippet