~ Replacing legacy mooTools code with jQuery