Update ftp.js

Fixed mysterious bug