moved Note object inside ready function for event listeners