js path modify