Update README with javascript code