You should use the top level application/www folder. When you build your app using the command line tools such as:
phonegap build android
phonegap build ios
the build process is in charge of updating the plattform-specific www folders. Beware that if you do otherwise, your changes may be overwritten by the build process (if you work directly within the platform-specific www folders).
Best.