Fixed script onDocumentReady