add jsdoc configuration and generation script

the generation script should be replaced with grunt, because it's dumb, but
it's working for now.