Fixing https, heroku dependencies on aJS