amalgamate - a template library for javascript