Node Based Version of JQuery betting game