simple async js template engine