works--added getCoords function to chatBox