refactor autoloading css and js