Add progress bar for javascript http requests