fixing css and js requiring