Set news item featured image aspect ratio on homepage with js