Switched to jQuery DOM methods for consistency