Modified js snippets.