fix the bug that js can't call npapi's function