changed css and js loading strategy