changed js for dataset