Splitted energy.js