Fixed Bugs in Javascript Comment API