adds javascript bdd snippets