fix chilliControllerHost|Port check in JS