fixing modal on oldIE
updating progressBar sample which used Math.random() wrongly