Added notes in JS