adjust js snippets