title: Copying the js objects value into the html as string
body: <p>I want to create html elements using the values of javascript objects which are not global.</p>
  
  <p>if i run the following code, i take the error: "params is not defined". What i want to do is just copying the value as an argument in the html code.</p>
  
  <pre><code>if (params.data.allowedOperations.indexOf('Put') != -1) {
     return "&lt;a onclick=\"ahey('PUT',params.data.allowedOperations)\" href=\"#\"&gt; PUT &lt;/a&gt;";
  }
  </code></pre>