update javascript and typescript snippets

add snippets for bdd-style tests