Ajax panel does not execute javascript

Grafana Ajax Panel( ryantxu-ajax-panel) does not execute javascript code.

The below ajax response was sent to the variable: {{ response }} from one REST API(GET method). Ajax panel only shows the html part but does not execute javascript code. Anything I am missing? Please suggest.

<!DOCTYPE html>
<html>
<body>

<h2>JavaScript new Date()</h2>

<p>Using new Date(), creates a new date object with the current date and time:</p>

<p id="demo"></p>

<script>
var d = new Date();
document.getElementById("demo").innerHTML = d;
</script>

</body>
</html>