load generated templates obj into javascript vm