Tweak JS snippets