improved nodejs repel