39. Upon ordering the return of a child or issuing an order concerning rights of access under this Act, the Superior Court may, where appropriate, direct the person who removed or retained the child, or who prevented the exercise of rights of access, to pay necessary expenses incurred by or on behalf of the applicant, including travel expenses, the costs of legal representation of the applicant, and those of returning the child, and any costs incurred or payments made for locating the child.