on{X} javascript rule to help with shallow battery discharges.