Merge PR #5923: implement fireEventToScript method to integrate JSB event handling with the original native code

Merge PR #5923,