Adds small speed up for base64decode

Copies the winner from base64tests branch. A small speedup is achieved
using a javascript object as cache and a plain for instead of the functional
forEach() on split() of the string.