Refactored into more dynamic solution and removed some code duplication.

Removed a lot of code duplication and un-needed code.
To add more notes create a new trigger element with data-note attribute referencing the intended note.