Refactors go.js and template (in index.html) to handle negative values