Removed next() from app.get, since it is unreachable after res.json has been returned
Use !== instead of !=, good practice with js in general
Declare var data; outside of try/catch, since we need it in scope to use it below
Adding missing semicolons, generally good practice with js
Also allow for searching/filtering names directly in path (/names/males/jon) as well as the original (/names/males?search=jon)
Extended /names endpoint to allow searching for rejected names as well
Merge pull request #1 from benediktvaldez/names

Suggested tweaks and extensions to your new /names endpoint