A simple JavaScript template helper