reverted change to overlay.js