Remove dependency on Nokogiri.
Oops - need Nokogiri for testing.
Pull out ScriptInjector.