Chess game written in javascript.