Tests js 3.0 ccgame

issue #3935 Fix some bugs.