A small wrapper for the HTML5 Battery Status API.