annotation download - JavaScript