added onComplete callback to the loader animation scripts