Moving the listen function(s) inside the if/else block for server/browser specific code.  This should give more flexibility to overload those functions