Minor changes to WAC js edit function.