Refactors.  Took out things used for testing.  Also moved the modal functionality from nots.js to notesModal.js for organizational purposes.
Setting values to null to prevent a php notice.
Refactored