js: var snippet