mode js path