Refactored code in MangaElt.js