update .js refresh flag