refactor(loader) jquery