Simplify EJS generated code