Move this block into index.js