Update go.to.js

First fully functional version.