Secure Access with an HTML5 Gateway