change jquery ui load + optimize js