JS script for the functioning

script for the comparison software