updating readme to js code blocks