Refactoring: Extract class file from winternote.js