JavaScript: TestSnippet