working aws photo upload that doesn't leave sensitive data in the javascript files