add some js snippets