Fixing bug in loading spinner and making it cross browser.