recovering js contract and contract_line models