Fix more page hanging issues

Issues caused by using $(document).ready() rather than $(window).load()
Toss in some error handling and we got a salad