Update tether.js

Removed the last function. And modified the vars in the first line.