add tests and support <script runat="server">
Merge pull request #17 from allen-zh/master

add tests and support <script runat="server">