Update to latest tern - fixes issue #3