Switching to using more CSS effects instead of JQuery