add js to get recent posts