I use black cotton thread. It holds the moss down, and after a while decomposes. Others have tried screwing a piece of slate to driftwood, and tying the java moss / java fern to crevices in the DW. Once the roots are set, the tie down is no longer needed. If you try this method, be sure to use stainless steel screws.