table.js, control.js: fix compatibilities with ie9; remove commented code