Now the function looks like this
<script type="text/javascript"> window.onload = function First () { var ds = buftitile; console.log(buftitile);} </script> even though it is wrapped in window.onload, the function will still be executed when the page loads.