Fixed new line at end of image annotation js.
updated return value in dialog_annotate js file.