next-tick: fix possible javascript error in script injection in IE<9 (close #324)