JavaScript chess viewer