Refactor jQuery for showing longer posts