Add some logging, and don't bind until page has loaded.