PGN Reader in HTML 5 and Javascript