Added responsive video and refactored some plugin code