Force based graph drawing (js+canvas)