javascript common classes for HTML5 Web Applications