Portable Game Notation (PGN) is first passed to the PHP which currently does little more than wrap it in the divs that the JavaScript module needs so that it can be recognized. Currently analysis of the PGN into css and javascript commands is done client-side. These computations may be accomplished better server-side.
To accomplish this:
- PGN needs to be converted into machine-readable commands for the javascript
- This data needs to be passed to the javascript by the PGN output
- The javascript needs to be modified to accept and understand the passed data