2nd: For now, the ability to play fullscreen videos (HTML5) is to be implemented (in the same manner as images are scheduled). Full code has to be provided, no aditional commercial libraries.
3rd: Some testing for errors and general bugs (none known) and those possibly caused by the refactoring.
A working sample will be provided.
Details of the JS Code:
functions: about 190 (overall)
loc (beautified): 7300 (overall)
statements: 9750 (overall)
branches: 216 (overall)
max depth: 6, 6, 0, 0
Halstead Volume: 2680, 3620, 3660, 903
Cyclomatic Complexity: 125, 131, 1, 1