Update immediate function.js