add template files contents to modal.js