adding regex and js helper snippets