fix bug in ios mobile safari

When I use it in ios mobile safari, setTimeout didn't work.