Check out the platypus.js repository to see the code and read instructions on how to use it.
Note that this proof of concepts are just that, so if you wish to see the actual code that is platypus.js go to the GitHub repo and get it from there. This experiments helped me validate the idea and lead to the current code.
You can see the demos in the experiments folder or you can view them live bellow:
contentproperty in CSS, load the CSS normally and finally read the JS from there
Tested against all the experiments: