Create a directive to the modal and another to the form inside the modal
Refactor some code, add a controller for the modal and create a function to trigger when the note is clicked
Remove modal.js