fix jsb bugs
Merge pull request #5 from ShortTailLab/fix-jsb-bugs

fix jsb bugs