When you use ‘Edit in Datasheet’ mode in SharePoint List, it is present data like Microsoft Access database with ActiveX control. As far as I know, It is difficult use java script to access to the data. After my search, they is very little about it. You
can refer to the following links.