Using less Javascript same result (25%)

Using less Javscript with the same result. You might already have a bug in the function processHex. See the inline comment.