Made injected code slightly cleaner.

Traditional object notation used instead of setting all the properties
individually.