Added some DOM functions for future use