trying to fix js for image edit button