Get features with ajax function