added e2e tests
removed unnecessary template generated js code