Refactors go.js