JavaScript image annotator