Fix main-local.js to run locally