Updated checks.js with wireframe classes
Made fs global