Update tern - slow down memory growth when editing codemirror.js

helps with issue #3977

This does not eliminate the memory growth, but it does slow it down a lot - we no longer die in the first 5-10 hints while editing codemirror.js