Update wizard functions js