Update foreground.js