Fixes #5152: Correct correctButtons function
Merge pull request #562 from VinceMacBuche/ust_5050/5052/correct_js

Fixes #5152: Correct correctButtons function