JavaScript Bugfixes with Activity Commenting

Various fixes