A pure javascript mvc