a flexible javascript template engine