Add some function to check.js