add snippet for js-mode and js2-mode