support new javascript handler in native code