javascript repairs