Fix hard coded host port in command
Renamed onRequest to handleRequest in anonymous function