replaced old newFeatureSpace function with new implementation that supports javascript function feature extractors