Coding style fixes.
Use radians directly.
Attempt to make BonsaiJS example more alike D3.js one.