using different media methods for cordova vs. enchant.js