Append .js extension if none is provided

Allows the same syntax as used in a browserify build.

I did not generate a new `wreq.js` or `wreq.min.js` because the build file did not work for me. Is there a trick to running it besides `sh bin/build.sh`?