Fix JS for Charles