Enhancing template with interfaces, models and require module loading