refactor articleParser.js