Adding ability to directly use a javascript array for data source.
Building.