update js name & reworking image upload functionality