Fixed js issues with articles.js file