Updating cursor position

Merging avh4's patch https://github.com/jdc0589/jsformat-atom/pull/9