added comments in js