workaround: phonegap can't store binary files; work with base64 for now