Update scripts.js

Added scroll position adjustment for selected entries in the Events page (so they don't fall behind the sticky header) and replaced some setTimeout functions with promises.
Update scripts.js
Merge branch 'Kevincredible-patch-10'