created a seperate log.js file \n added target, template, data and render methods to funplate