javascript check if string is binary