Reverted and added almost-working jQuery code, commented out.