A chess game in HTML5 and Javascript