dev make total calcs js work in mustache partial