<script> var models = {{=models}}; </script>
And just like that, I have my data accessible as a global variable.