Architectural template for an HTML5 application