Added the onReady to the javascript