Update main.js

background works and chicks are created