substituted remove for filter in function naming to be more clear; started writing postsJSON function that returns a JSON of all the posts visible in the group
made a global variable, globalPostsArray, which is an array of all the posts visible in the group; on page change it clears globalPostsArray and makes sure it's up to date