fixes #736

abstracted getExcerpt
refactored get_page_excerpt