Fix global var issues found with 'use strict'

This broke the 3/12/24 months selector on the weight history view.
Show total reps for body-weight exercises in the history view