switch to jQuery
tidy