Created a new check number function to stop the JS number madness