Script to detect current page section on a one page site