修复JS错误