Removed unused DOM functions