js popup file update