Fix empty setTimeout issue w/ Firefox