added js code for experiment