Adds javascript to 'Add Note'