move 'inject-js' earlier to document-start

See #1372