Function to attach event listener on old browser