Move popUp() to script.js

Also refactored function so it can be used for other overlays.  Just pass the id of the overlay element and the percentage of how far you want it from the top.