bug fix.
On java7, <script></script> tag on template becomes <script /> . 
this bug not happen on java6.