Update tern to the latest for performance improvements