Better JS snippets. Still WIP.