[coordinate.js] Implemented isValid() function in Coordinate prototype

Change-Id: Ib3a460310266c55a188143f10accb5a9da9400fc