Substitutes placeholders in text using js file.