Generate and check Hamming Code with single-error correction (SEC) and double error detection (DED). Built with pure Javascript.