Loading videos based on screen sizes

Chrome doesn't support inline media queries for the source in a video tag like the picture element. Sometimes you want to load a different video based on the screen size, such as a different aspect ratio. This is a simple script to accomplish this. It could easily be extended to a resize event.