Updated main.js

Fixed jumpToLine to set cursor position in the center of the screen.