From http://stackoverflow.com/questions/18082/validate-numbers-in-javascript-isnumeric