fix js format errors