Added checks to check.js