Edit require loading order.
Clean out unused require statements and update package.json dependencies.