nvd3 reusable charts for rails 3