Modified check.js.