Refactor in progress - but order of note files in index.html appears buggy