This may be unnecessary once I use matchMedia. If it's still needed, I'll clean up the formatting and add a comment.