some mappings for tern.js