a toy webpage rendering engine in javascript