Restructure directory for phonegap