moving initial notes query to notes-filter.js for integration.