Client build: modularize loading indicator from ui.js