Updated peer-time.js to use array