Use fs.appendFile to update components partial rather than reading and writing
Remove self = this