Does it work?
Of course it does.
Read how I did it here: Dynamically Load and Run JavaScript from JavaScript