js snips