Polynomial long division

Dividend: 
Divisor:
 
              
 

 
Seems to look best on Chrome, but should work on all modern browsers if Javascript is enabled.
Copyright (c) 2015, Prof. Dr. Edmund Weitz.