master js templated