Restructure to fit cordova package