Set cursor position after processing in EJS