too much js templating