check if string is binary using javascript