Inline svg

I noticed that `injectStyles` and `injectScripts` varied some small internal parameters, so I created universal function inject and pass those params to it.