Added the ability for onReady to be an array of callbacks