a simple javascript template engine