Add spinner and loading page
Move timeToString to helper.js