js dialog loader - small fix