results.js cleanup