Example of how to create a cursors legend usinf jqwidgets