add IE user agent detection, use scrollHeight for modern browsers