minor js snippets changes