onReady() function throwing error on EVERY page

@farid-berrais Ok I am seeing that now, my code is acting up.