changed packaging.js to work on heroku