added js for data view