Update jquery each statements to proper form when using on dom element
Refactor code moving more view updating from event_handlers.js to view_functions.js.
Change note-selection and all-notes classes to ids in index.html so there is less to deal with when adding classes dynamically to their div tags.