RF-12860: added javascript comments according to comments from David Lee