I know that this is just copied from the current code, but bonus points if you cache the length, e.g.
`for (i = 0, ii = annotationsData.length; i < ii; i++) {`.

The same applies to the loop below as well.

__Edit:__ Also, I think you should move the variable declarations (`var i, ii;`) to the top, i.e. below the line (or placed on the same line)  as `var data, element`.