Import templates and components using AJAX