Move the window resize listener into the jsplumb directive where it really belongs