Export and use Notes ES module
What does this MR do?
The notes JS class was exported as a ES module but never actually used as one, this changes that to stop relying on the window object. This creates a singleton notes object to allow for the class to be imported into several different files & used.