jQuery Refactor

Stuck as could be.