css and jss loading refactoring