Space-indented and cleaner javascript snippets