D3 and C3 integration for Rails