Fixed #624: add a condition in js-tests/main.js for Web
Merge pull request #626 from dingpinglv/Iss624_H5Fail

Fixed #624: add a condition in js-tests/main.js for Web