[IMP] grid2.js path finding perf