Added function to beautifier the object use in HTML page