Add .jshintrc + fix jshint errors

Fixes #33
Enter/update/exit all needs to be in a transition.

For links update is not in a transition which confuses d3 when you quickly reruns the method leading to missing links.