jQuery plugin to automatize a progress bar