Update FORGROUND - JavaScript