posts/recent.js refactor