Used navigator.getBattery() instead navigator.battery in EnergyManager
Made it work navigator.getBattery (for Chrome and Opera) AND the deprecated navigator.battery (for Firefox)
formatting and comments
Merge pull request #3 from franciov/bug/2-energy-manager-does-not-implement-the-last-w3c-specification

Bug/2 energy manager does not implement the last w3c specification