Updated checks.js