If you want the code for this project, fork this GitHub repo - Online chess
Check out the code in action here, play it yourself - Live demo
Play the new and improved version here - FireChess
Check out the new and improved codebase here - FireChess GitHub