Support for inline script and custom options

Added support for inline script and custom options when injecting stuff with bjs.dom