update javascript to show what's going on