Avoid showing element until done (also simplifies CSS hiding); adding IE10+ classList dependency (can use polyfill if older browser supported needed)