Adds globals for CouchDB Design Documents

Currently, the only globals this allows for is 'emit', which is
used in all CouchDB JS Design Documents.

This commit helps to allow CouchDB users to validate their
JS Design Documents with JSLint, which they currently cannot
easily do.