removes unneccessary assignment of possible existing onloads within the context variable