Modern browsers use JavaScript engines which are so optimized that it is actually possible to do computationally expensive work like image processing (recognition, transformations, etc...) in the browser in reasonable times.
Also: Live video processing in the browser
See also: