js feature extractor (not finished yet!)