Changed tern access from editor to addons