Fixed js for complaints