separate d3 source codes in apps.js
support tooltips on svg elements by tipsy.

tipsy: https://gist.github.com/ilyabo/1373263