Update api.html

JS is not highlighted when it wrapped by script tag by reason of:

```
dojo.query("pre > code").forEach(function(node) {
  if (node.innerHTML.indexOf("DOCTYPE") !== -1 || node.innerHTML.indexOf('&lt;script') !== -1) {
    dojo.addClass(node, "html");
  } else {
    dojo.addClass(node, "javascript");
  }
```