added option to set onInitialized callback

It should be possible to set the ```onInitialized``` callback.
In contrast to ```script``` this allows to run code *before* the scripts included in the webpage.