update tern to 0.3.0