Updated coordinate.js