removed unused code
use arcgis online user thumbnail if exists
global variables help debugging
removed enhancements (saved in index.html.final)