fix JS test snippets
it should no done