removed unused packages, code cleanup, video poster flicker fix, js refactoring