Some formatting and testing isWall with === instead of ==

The only substantive change is disallowing the type inference by using === to compare to GraphNodeType.WALL.

The linter did some minor linting too, but that's disposable if you don't want it. There was some confusing indentation and var placement at graph.js:152