Added value-of method to get a DOM element value