Moved notes UI javascript to separate file