Simple webgl | Computer Science homework help

So it is a really simple and most basic webgl homework, should be really simple for someone who had any experience with computer graphic, attached is the syllybus and a starter code if you want to use it. I’ve been working on this but haven’t solve my problem with the buffer and I’m afraid I won’t have enough time.

So the starter code is basically a example from online resource and it does not include buffer but it can reduce some time to use it I guess. 

I know it may make more sense if create several classes but try to just include every functions in the driver.js since that’s what our professor asking for