Storing  returned values of three js functions in log array and displaying in body element