onReady() error [SOLVED]

Thank you Genry!
These were the problems.

Regarding the FieldNames issue, I had that the correct way before and then someone advised to switch it, so I guess updating the documentation should help out other people in the future :slight_smile: