Refactored redundant jQuery method calls