an javascript development approach base on cordova-js