check inject_script field before calling _InjectScripts
Merge pull request #8 from rmcloughlin/master

check inject_script field before calling _InjectScripts