js/native code interaction now properly working