Use correct object type variable
Merge pull request #453 from drkitty/creation-js-fix

Use correct object type variable