Fix bug with JS code
#3114795: Ajax-based interactions on microcontent forms make fields unable to work as expected