Here is an experiment of using the browser object to run javascript in a few interesting ways. You can do anything you can do with a plugin with this, but it's all done in C2 which makes it quicker to test changes.
First off it's used to load js files and interact with C2's runtime. This isn't minifier friendly, but it should be possible to wrap it in a plugin so it will be.
The main thing done in this capx is to change the rendering of one instance of an object in an interesting way.
With webgl off: some arbitrary canvas drawing is done.
With webgl on: a 3d cube is drawn inline with the rest of the other objects (as opposed to only on the very top or bottom).
https://www.dropbox.com/s/oge5lmjwm5wpp ... .capx?dl=1
/examples35/js_test2.capx
Maybe this will be interesting/useful to someone.