Reformat code to remove inefficient jquery usage warning.