adding NaN check for session average to gauge javascript (fixes issue #31)