btoa.js optimizations/cleanup.