News details page - Refactor, and fixed JS bug