Fix previous commit

GetObjectRegistry()'s signature expect object and
it should always return one
support inject-js-{start|end} in manifest

Fix #1585