feat(atob): port and modify from Base64.js

you mean `buffer = str.charAt(idx++);` this line?
It wont pass the test with your suggestion