Consolidate js code and srcs. Change updateProgressBar data name to chunkSize.