Convert the (pathetically tiny) JavaScript to use jQuery.