// To check the selector console.log($(floorplanImg).attr('src').filename());
console.log($(floorplanImg).attr('src')); //output http://d1cqg347kk4c8a.cloudfront.net/s3fs-public/ckeditor/Icon%20-%20001.jpg