Switch from jquery ready to the domReady plugin.