Dynamically determine how many recent posts to show in javascript.
On small screens, just show five always.