Added JSDoc. Script for building JSDoc.