refactor html & json util methods from object_utils