Added script to update cursor position on prerender