arod17pr
As for the handshake and passing data this is a quick example of it would work. Keep in mind if you are referencing the Device_ID since it's coming from the screen the value would be 0 for Device_ID
air_console.onMessage = function(device_id, data) {
if (data.handshake) {
sendHandshake();
}
// The data red would be coming from the screen and changes Player 1 background to red
if (data == "red")
{
document.getElementById("changeBody").style.backgroundColor = "#B73338";
}
};
As for basic Javascript tutorials you can check W3Schools