removed localhost from config.js, added guessing of ES host