Converted code snippets to Github's JS markdown