Somewhat working HTML/JavaScript implementation

Patter loader or maybe builder is off a bit still?