Refactored code in chess.js and the about page because it was ugly.