figure 1 js update