Fixing cursor selection typo.

I didn't realize there was a function to select objects and write the data as text until I looked into this javascript error that kept showing up. This is a really great feature once the typo is fixed!