Make as.jhtml (and .jcss etc) use same structure as as.json (issue #381)