Fixed issue where legend was not rendered properly in mobile mode

Legend is now rendered using jQuery mobile controls in mobile mode. Removed details/summary elements for legend items.