js function feature extractor (not finished yet)