Fixing small bugs in d3.js graph code + routing algorithm bug fixes for unreachble nodes