Fixed bug in the clearAnnotations() method

Fixed the clearAnnotations() JS native method so that it calls the resetAnnotations() method correctly.

I committed the same basic change to the part of the code that's in the CloudCoder GWT project.