clean up JS, add loading spinner