change offset calculation using jquery for IE compatibility