Avoid global es connection

It doesn't work in heroku. And it's better to avoid globals :)