Lazy loading script with jQuery and an AMD loader.