[js] fixing a modal for image crop. Image now reload automatically after crop