configuration refactoring; wrapping eco into jquery function (config)