refactoring libs js, layout & articles