pure javascript and bootstrap for progress bar