Update midway.js