Updates load spinner code to work with jQuery 2.x.