Further worked on class compatibility.

In true javascript fashion, I'm cobbling code together to see what
happens. Currently broken due to my inexperience.