making the comments javascript production ready