workaround for parsing metadata.
Merge pull request #518 from nla/js-fix-upload

workaround for parsing metadata.