Update enable monitoring to work with jqm-1.3
Minor code formatting changes