Create judgeSafety.js