May be a bug

decode64.length -= 1; appears twice in this file.
decode64 is a string, reduce its length has no effect, just wonder what is the purpose of this statement.
Is this file compiled from source of other languages? Thanks