onReady() function throwing error on EVERY page

It is just a validation bug, code still works. …
Confirm !!!