fix an issue with converting dart object to javascript
performance improvement from review
Merge pull request #124 from dart-gde/interop_issue

fix an issue with converting dart object to javascript