improved console logging, fixed reload events issue, fixed cors issue when loading cross domain