adjust js for recent posts