fixed the article js code