Refactor main.js functions to expose require("regenerator").varify.