Divide a complex function
Add test html