Add meaningful return values to DOM manipulation functions