add comments and references in js file