javascript WebGl port of a game which originated in TurboPascal