add tern js for javascript