Random jQuery nonsense, trying to improve.