Charts in rails and backbone