title: Format a JavaScript string using placeholders and an object of substitutions?
body: <p>I have a string with say: <code>My Name is %NAME% and my age is %AGE%.</code></p>
  
  <p><code>%XXX%</code> are placeholders. We need to substitute values there from an object.</p>
  
  <p>Object looks like: <code>{"%NAME%":"Mike","%AGE%":"26","%EVENT%":"20"}</code></p>
  
  <p>I need to parse the object and replace the string with corresponding values. So that final output will be:</p>
  
  <blockquote>
    <p>My Name is Mike and my age is 26.</p>
  </blockquote>
  
  <p>The whole thing has to be done either using pure javascript or jquery.</p>