MDL-38286 JavaScript: Include a YUIDoc configuration for Moodle

To build documentation run:
  yuidoc