fixed JS mistake that caused upload in lists and sliders to not work until saved