adding note.js with added initialize function