switched cookie storage against localStorage (HTML5) and changed prompt to form field (timeout issues on app)