added initial js snippets