JSON/JS Template utilities