Are you aware that the script in post #152 is outdated? Just-dice uses a CSRF token now. Search dice.js for socket.emit("bet" and perhaps you'll find the answer.
tks for informing it, didn't know about this token, I updated my code on
post #152. Tested it and it worked.