More robust jQuery loader

As a template