A lightweight, pure-javascript approach to automatically turn part of any web page into a modal overlay