Added js for compare