fixed right arrow bug and refactored js css

Fixed the issue where the videos kept duplicating on right arrow press. Also refactored css into css files.