Cleaned up code after testing "re-init" functionality in various browsers/platforms