A sample javascript structure for static (optional: dynamic) web app architectural example