Updated panel layout.js to show battery if available