js bug fix and added ftp-deploy grunt module