Improved JS structure.
Image shows after upload.

Moved getServingUrl().
Removed old code.