adopted an algorithm similar to the one used in ngProgress to determine the amount of progress of the bar
adopted an algorithm similar to the one used in ngProgress to determine the amount of progress of the bar