Correct path in javascript