This simple example explores the battery api. The battery api is a really nice and easy api giving us some useful data.