Living chess diagrams in Javascript