fix borked JS