handling the rendering of annotation text in the simplest way; updated annotate() function to create an object out of text and coordinates, to be brought into backend javascript