add data source from javascript