added `maybe-open-script' and also some other minor changes (scrolling chrome for example)