Move js scripts from article.html to sub templates in order to make it more reusable