Fixed issue #3 where atob is not defined in node-webkit by first checking for its existence in case it is defined, then trying window.atob if atob is undefined