Replaces the JQuery UI progressbar with the Bootstrap progressbar and safely checks event targets.