Move tern script into tern addon array

This works pretty well. 

One problem (maybe?) is that if I was to have the cursor as below (`|`) and press tab it will give me all the options for the global scope, but i guess that's expected.

```js
function test (something, else) {
  // blah...
}

test(|)
```