refactored deploy.js to accept parameters and deploy