rework to build using local cordova rather than phonegap build