removed old js impl