Finished index .js to example state