Python Input Check If Number Javascript