refactored energyObject.js