Update scripts.js

Added scroll position adjustment for selected entries in the Events page (so they don't fall behind the sticky header), replaced some setTimeout functions with promises, and fixed a mobile menu issue.