switch to Amazon login and browser AWS Javascript SDK