Program Input Valides Hex (P1) JS is stupid