JavaScript Ajax + Java Image Cropper