Adapted style to functional, refactored some initialization functionality, all unit tests work (again).
Merge branch 'master' of https://github.com/mliebelt/PgnViewerJS