add javascript implementation of glutSetCursor function