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

helps with issue #3977
Merge pull request #3988 from eztierney/issue-3977

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