set up the injection order to head, body
lifted the regexp out of the finalize function
Merge pull request #41 from Pomax/injectionorder

set up the injection order to head, body