Convenience wrapper functions for the file API in PhoneGap/Apache Cordova