template engine and views js