Minimal JavaScript architecture to build framework-agnostic and delivery mechanism independent applications