Bug 839831 - make jsjni_* functions usable without MOZILLA_INTERNAL_API