Update shortestPath.js

Fixed comments