cleaned up via jshint
set for attachment
ditto
addition of a base64 library and documentation