Is there a way this can take place entirely server side?
(yes, this is almost certainly a terrible way to implement it, but i was curious as to whether it could be shoehorned in.)
Additionally, trying to get browsers to consistently implement something of this level of complexity sounds dangerous.