game.js
function respOk (response, data, type) {
    if (type) {
        headers = {'Content-Type': type};
    }
    response.writeHead(200, headers);
    if (data) {
        response.write(data, 'utf-8');
    }
    response.end();
}
function respOk (response, data, type) {
    if (type) {
        headers = {'Content-Type': type};
    }
    response.writeHead(200, headers);
    if (data) {
        response.write(data, 'utf-8');
    }
    response.end();
}
function respOk ( response , data , type ) { if ( type ) { headers = { 'Content-Type' : type } ; } response . writeHead ( 200 , headers ) ; if ( data ) { response . write ( data , 'utf-8' ) ; } response . end ( ) ; }
typical response helper
typical response helper