Create check_function.js