Fix (sometimes) invalid, non-padded hex code

...by switching to a method of generation that always returns a valid
code.

Updated the minified version accordingly
Update README, add example HTML