A simple JavaScript template manager