The function declaration / implementation has changed but it's previous form is still being used [here]([https://github.com/MorganDawe/islandora_image_annotation/blob/7.x.img_anno_fix/shared_canvas/stable/sc_pastebin.js#L18).