Improves completion

* Updates tern.js browser definition file
* Fixes a bug which broke all tern.js return types
* Fixes a bug where it would incorrectly set the constructor function to a property instead of the actual function
* Fixes a bug where it incorrectly assumed we would have a return type for definitions