creating MVC in single index.html