Changed alert to use getBoundingClientRect()