How to access Page context in javascript

I understand that I can implement the get_context method in my python file corresponding to that page and that the attributes of that context will be available in my .html template.

But how can I access that context in my .js-file?

I could not find documentation on this

Thank you