Fixed issue when calling a JS function in a native object

Requires [this PR](https://github.com/appcelerator/hyperloop-common/pull/85)