demo.js button function regroup