use nodejs to generate template files