Simple JavaScript template engine