Here's a Tern JSON definition file for babylonjs http://hugos.site/babylonjs.json (generated from www.babylonjs.com/babylon.max.js) , (a few "Invalid !type spec" errors were fixed by changing the "!type" of about 10 things to "fn()") ("it's not 100% functioning properly)