check if string contains non numeric characters javascript