able to generate scripts tree on server. add antiJSInjection method
minor change on method name