rework result.js