JS Snippet tweaks