chore(docs): refactor js data templates

This is to allow the same template to be used for other data