cleaning lib/nails.js