Base62 Encoding JavaScript implementation