Append Data into Gdrive: Append Data to the top, skipping 1st row

Hello. I would like to append data to the top, skipping the 1st row as the row is the header. I tried to follow this link but I am unsure what optIndex is :https://stackoverflow.com/questions/28295056/google-apps-script-appendrow-to-the-top

Below is my block code:

Below is my app script and my error reads: ReferenceError: index is not defined. No data is being inserted.

Hope to get help. Thanks.