changed overlay.js, fixes