Fix for errors when loading in browsers via require.js / jam.js

The code assumed that if `require()` is defined then `require('buffer')` will work, but in require.js-driven browsers, that call will throw an exception unless you happened to have already loaded a module named `buffer`.

Please merge and then update http://www.jamjs.org/packages/#/details/base64codec :)