Simple js utility script for request authentication.
Cleaned up getOpts.