find correct path to open html file from the notes.js path