update lib/nails.js