JavaScript to find the total in a WP Gravity List field