refactored go.js