add js interface for chart gem