Creating a template and importing scripts