Use new API of tern file which support JavaScript inside HTML.