control.js: fix browsers compatibilities