Create namesController.js

Added the names controller that was used in the filter