You played it well, just got outdrawn which happens. If I was in the AJ position I'd most likely be calling or raising against you too.