Fix indentation and add syntax highlighting for javascript example