fixing click handler for failing tests in IE10 and IE11. setActive throws invalid function error