fixed yasnippet and js2-mode issues