Tutorial fix

Fixed typos in kratuTutorial.md
Moved render function to an anonymouse callback function set in setReportDefinition.