fix a script eval bug.

When script is appended to an alone node first, and then parent node appended to body, the script will be evaled twice. See test for details. Sorry for my poor English.