Added [0] after compiledContent in compile line and console.log line