move js3 snippets to js2, and use new-line-dwim for ret