it's very possible I don't understand CoffeeScript but as written won't this only negotiate TLS if it's enabled (and not deflate or snappy)?