begin work in progress.js
some simplifications in progress.mas and progress.js
simplifier more progress.js
moved more JS code from progress.mas to progewss.js
fixed bugs in loadWhenAvailble function