JQuery efficiency improvements.