JavaScript Popup done & creating Progress Bar