Just remove the .addmetatag() method and use this code:
function doGet() { return HtmlService.createTemplateFromFile("main").evaluate(); }