fix some bug on script tag