Fix #325: the threshold option doesn't work on IE 8