You can smear a layer of glue on glass to make the filament stick to it.