add teasers to post listing on index page
refactored js code out; add tag page