fixes, button.js, progress.bar.js

fix old code in button.js, fix code style in progress.bar.js