Added orthogonalize function (square corners)
Fix case where parentnodes present
Merge remote branch 'upstream/master'
Tidy up: fix indents, spaces etc.

- Update orthogonalize to match new circularize.
- Add orthoganalize to test index.html
- Revert whitespace on index.html
Merge pull request #612 from porjo/master

Added orthogonalize function
Adjust for style, formatting, and jshint