Fixed two bugs

1. There was a missing end curly brace
2. cursor was being called as opposed to activeText.cursor
Added capitalization support