Added fake energy widget plus some JS side optimisations