added the ability to log objects and html elements