Add basic function snippet for js2-mode