move check functions in check.js, proper++