Add support for JS object as configuration