The Amazon S3 support seems to suggest that the authors believe it is acceptable to store your AWS key ID and "secret" key in your client-side JavaScript code. Am I missing something here?
See http://aws.amazon.com/articles/Java/1434.
Addendum: The "key" there means key in the S3 sense, as in the name of the object being stored.