Use https://github.com/angelozerr/tern-liferay and load liferay tern
plugin with new Tern API (inside tern-liferay folder and not tern/plugin
folder)