javascript library for calculating file upload statistics