onReady() function throwing error on EVERY page

it seems that this affects the code since it is unable to execute the scripts relating to onReady()…