Added tern path and explicitly activate tern for web mode and js2 mode