JavaScript could benefit from being optimized throughout the modules in ding2.

I have updated the comment.