Fix AMD loading when browser has native support