fix js localhost