I want to create a button .When I click the button first time, it scans the barcode and runs some JS. Then, click the second time, run some JS and scanning barcode are also. However, It doesn't work on the phone. When I scan first time and complete, then it appears loading. How to fix it? Number is the variable that counting the click and When the barcode service is completed, number++