setup index.js to parse assets and config file with options