Refactoring action.js file to use objects to clean up the code a little. Trying to make it so new notes can be added with less bugs.