big refactoring for no-js styles