working rjs graph with animations