js path correction