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

Please rewrite this with the follwing:
```javascript
buffer = str.charAt(idx), idx += 1;
```
and remove `/* jshint -W084 */` comment above.