Still troubleshooting

Modified script to try and get X after document is ready.