java script tool to print object information